package com.zmx.b2c.pay.entity;

import com.zmx.common.common.entitys.BaseEntity;
import lombok.Data;

import javax.persistence.*;

import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author zhaomxr
 * null
 */
@Data
@Entity
@Table(name = "payment_log")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper=true)
@Inheritance(strategy = InheritanceType.JOINED)
public class PaymentLog extends BaseEntity {

	/**
	 * null
	 */
	@Column(name = "payment_sn")
	private String paymentSn;

	/**
	 * null
	 */
	@Column(name = "steps")
	private Integer steps;

	/**
	 * null
	 */
	@Column(name = "serverip")
	private String serverip;

	/**
	 * null
	 */
	@Column(name = "clientip")
	private String clientip;

	/**
	 * null
	 */
	@Column(name = "reqparams")
	private String reqparams;

	/**
	 * null
	 */
	@Column(name = "order_sn")
	private String orderSn;

	/**
	 * 现金支付金额
	 */
	@Column(name = "cash_amount")
	private Double cashAmount;

	/**
	 * 用户id
	 */
	@Column(name = "member_id")
	private Long memberId;

	/**
	 * 平台 0-自营
	 */
	@Column(name = "platform")
	private Integer platform;

	/**
	 * 是否需要查证,0-需查证,1-不需查证
	 */
	@Column(name = "need_check")
	private Integer needCheck;

	/**
	 * 银行查证状态,0-未查,1-查证成功,2-原交易不存在,3-银行系统错误,4-无响应,5-信息错误
	 */
	@Column(name = "ebank_check")
	private Integer ebankCheck;

	/**
	 * 银行查证返回状态
	 */
	@Column(name = "ebank_status")
	private String ebankStatus;

	/**
	 * 银行查证返回状态和说明
	 */
	@Column(name = "ebank_info")
	private String ebankInfo;

	/**
	 * null
	 */
	@Column(name = "remark")
	private String remark;


}
